package com.gzgy.ustore.api.dao.impl;

import com.gzgy.ustore.api.dao.RoleDao;
import com.ustore.model.Roles;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class RoleDaoImpl extends AbstractBaseDao<Roles> implements RoleDao{
    @Override
    public List<Roles> roleList() {
        return this.queryForList("SELECT * FROM " +this.tableName+" WHERE IS_DELETED =0" ,Roles.class);
    }
}
